import java.util.Random;
import java.util.Scanner;

/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/9
 */
public class Test07 {
    public static void main(String[] args) {
        Random random = new Random();
        int a = random.nextInt(100);
        Scanner sc = new Scanner(System.in);
        int n = 0;
        while (n < 7) {
            System.out.println("请输入数字");
            int b = sc.nextInt();
            n++;
            if (b > a) {
                System.out.println("太大了，再小一点！");
            } else if (b < a) {
                System.out.println("太小了，再大一点! ");
            } else {
                System.out.println("恭喜你猜对了!");
                return;
            }
        }
        System.out.println("你太笨了，下次再来吧！");
    }
}
